home *** CD-ROM | disk | FTP | other *** search
- /*
- Copyright Cornell University 1986. All rights are reserved.
- */
-
- /* this file contains macintosh globals not included in the system files */
-
- /* 7/9/87 kevin added CurStackBase */
- /* 3/14/89 kevin added KEYPAD3 */
-
- #define CurApName ((char *) 0x910) /* location of name of application */
- #define CurStackBase ((char *) 0x908) /* location of base of stack */
- #define GZRootHnd ((Handle) 0x328) /* root handle for GrowZone [handle] */
- #define SaveVisRgn ((Handle) 0x9F2) /* BeginUpdate stashes handle here */
- #define EventQueue (EventRecord *) 0x14A) /* location of name of application */
-
- /* drawing stuff */
- #define ScrnBase ((long *) 0x824) /* ptr to base of screen */
- #define HiliteMode ((char *) 0x938) /* sets Color highlight mode on */
- #define SETHILITE() /* a NOOP or ... (*HiliteMode &= 0x7F;) */
-
- /* Scrap stuff */
- #define ScrapSize ((long *) (0x960))
- #define ScrapHandle (* (Handle *) (0x964))
- #define ScrapCount ((short *) (0x968))
- #define ScrapState ((short *) (0x96A))
- #define ScrapName ((char *) 0x96c)
-
- #define TEScrLen (*( (short *) 0xab0))
- #define TEScrHandle (*( (Handle *) 0xab4))
-
- #define BootDrive ((short *) 0x210)
- #define SFSaveDisk ((short *) 0x214)
- #define CurDirStore ((long *) 0x398)
-
- #define OLDKEYBOARD 0
- #define PLUSKEYBOARD 1
-
- #define NORMKEYPAD 0
- #define KEYPAD1 1
- #define KEYPAD2 2
- #define KEYPAD3 3
-
- #define KEYMODMASK 0x0F80
-
-